//
//  StepViewController.h
//  LineByLine
//
//  Created by 병철 김 on 11. 11. 12..
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StepView.h"
#import "AudioManager.h"

typedef enum {
    kWait,
    kPlayStart,
    kPlayFinished,
    kRecordStart,
    kRecordFinished,
    kPlayRecordStart,
    kPlayRecordFinished,
    kAskRetry,
    kAskRetryFinished,
    kRetry,
    kNext
}  ControllerStatus;

@interface StepViewController : UIViewController<StepViewDelegate, AudioManagerDelegate> {
    id book;
    int curPage;
    NSNumber *step;
    float offset;
    
    UIBarButtonItem *recordButton;
    
    ControllerStatus status;
    BOOL isRecordingAll;
    
    ControllerStatus nextStatus;
    int waitCount;
    NSTimer *timer;
}
@property(retain, nonatomic) id book;
@property(retain, nonatomic) NSNumber *step;
@property(assign, nonatomic) int curPage;
@property(readonly, nonatomic) StepView *stepView;

- (void) configView;
- (BOOL) hasMedia;
@end
